//职位模块
import React, { Component } from 'react'
import {
    View,
    Text,
    TouchableOpacity,
    Animated,
    StyleSheet,
    BackHandler,
} from 'react-native';
import { connect } from '../../utils/dva';
import Swiper from 'react-native-swiper'
import { Button, CheckBox } from 'react-native-elements';

@connect(({ global }) => ({

}))
export default class Hehe extends Component {

  
    render() {

        console.log(this.props)

        const { nav_index } = this.props
        return (
            <View style={styles.content}>
                <Swiper style={styles.wrapper} showsButtons >
                    <View style={styles.slide1}>
                        <Text style={styles.text}>广告3</Text>
                        <TouchableOpacity
                            onPress={() => {
                                this.props.navigation.push('App')
                            }}>

                          
                        </TouchableOpacity>
                        
                        <Button title='开始体验' 
                             onPress={() => {
                                this.props.navigation.push('App')
                            }}
                        />
                    </View>
                    <View style={styles.slide1}>
                        <Text style={styles.text}>广告1</Text>
                    </View>
                    <View style={styles.slide1}>
                        <Text style={styles.text}>广告2</Text>
                    </View>
                </Swiper>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    content: {
        height: '100%',
        width: '100%',
    },
    wrapper: {
        // flex: 1,
    },
    slide1: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
    },
    text: {

    }
});

